package com.example.log;

import ch.qos.logback.classic.LoggerContext;
import ch.qos.logback.core.util.StatusPrinter;
import lombok.extern.slf4j.Slf4j;
import org.apache.log4j.MDC;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * @author wuancheng
 * @description
 * @date 2022-05-30 11:29:00
 */

@Slf4j
@SpringBootTest
public class logger {
    public static void main(String[] args) {
        Logger logger = LoggerFactory.getLogger("hello world!");
        logger.debug("hello world");

        // print internal state
        LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();
        StatusPrinter.print(lc);
    }
}
